<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;


class DevicePoint extends Model
{
    protected $table = 'xfy_device_points';
    protected $primaryKey = 'id';

    protected $fillable = ['device_id', 'name', 'alias'];

    public function devices()
    {
        return $this->belongsTo(Device::class, 'device_id');
    } 
}